
#include <windows.h>

class update_impl;

class win32_hwnd
{
public:
		win32_hwnd();
		~win32_hwnd();
public:
	static HWND		m_hWnd;
	static update_impl * update_impl_;
public:
	    void  destory();

		void set_update_impl( update_impl * impl_ );
		HWND GetSafeHwnd() const;
		int  create_hwnd( HMODULE hModule, LPCTSTR lpszClassName);
		
		static LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
	
private:
		
		HMODULE		module_;
		std::string class_name;
};





